package com.meowcook.pojo.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2025-05-10
 * Time: 15:38
 */
@ApiModel(value = "个人中心用户信息")
@Data
public class UserDetailVO {
    @ApiModelProperty(value = "用户id")
    private Long id;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @JsonInclude(JsonInclude.Include.ALWAYS)
    @ApiModelProperty(value = "手机号")
    private String phoneNum;

    @JsonInclude(JsonInclude.Include.ALWAYS)
    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "性别，0-女，1-男")
    private Byte gender;

    @JsonInclude(JsonInclude.Include.ALWAYS)
    @ApiModelProperty(value = "头像地址")
    private String avatarUrl;

    @ApiModelProperty(value = "用户发布菜谱数量")
    private Integer recipeCount;

    @ApiModelProperty(value = "用户粉丝数量")
    private Integer fansCount;

    @ApiModelProperty(value = "用户关注数量")
    private Integer followCount;

    @ApiModelProperty(value = "用户是否是管理员，0-否，1-是")
    private Byte isAdmin;

    @JsonInclude(JsonInclude.Include.ALWAYS)
    @ApiModelProperty(value = "用户简介")
    private String bio;

    @ApiModelProperty(value = "用户状态，0-正常，1-封禁 2-首次登录, 登录时校验状态，首次登录需要进行健康信息采集，如果封禁则不能发布任何言论和食谱")
    private Byte status;

    @ApiModelProperty(value = "用户创建时间")
    private Date createTime;
}
